package com.order.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.dao.colorDao;
import com.order.po.b_color;
import com.order.service.colorService;
@Service
@Transactional
public class colorServiceImpl implements colorService {
	 @Autowired
	   private colorDao colorDao;
	@Override
	public List<b_color> getAllcolor() {
		// TODO Auto-generated method stub
		return colorDao.getAllcolor();
	}
    
	@Override
	public List<b_color> get_bycolorid(String parameter) {
		// TODO Auto-generated method stub
		return colorDao.get_bycolorid(parameter);
	}
	
	@Override
	public void update_color(b_color g) {
		// TODO Auto-generated method stub
		this.colorDao.update_color(g);
	}

	@Override
	public void delete_color(String color_id) {
		// TODO Auto-generated method stub
		colorDao.delete_color(color_id);
	}

	@Override
	public void insert_color(b_color g) {
		// TODO Auto-generated method stub
		colorDao.insert_color(g);
	}
	
}
